import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from './router/router'
import App from './App.vue'
import axios from 'axios'
import config from './config/index'
import request from './utils/request'
import storage from './utils/storage'
import api from './api'
import store from './store'
// axios.get(config.mockApi+'/login').then((res)=>{
//     console.log(res) 
//     if(res.data.code==200){

//     }
// })
const app = createApp(App)
app.config.globalProperties.$request = request
app.config.globalProperties.$storage = storage
app.config.globalProperties.$api = api
app.use(store)
app.use(router)
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')
